package com.oo.abstractAndInterface_6.bicycle;

/**
 * TandemBicycle--${description}
 *
 * @author: Jovi
 * @createTime: 2017-04-13 11:33
 **/
public class TandemBicycle extends Bicycle {

    public TandemBicycle() {
        this.setSeatNum(2);
    }

    public TandemBicycle(String name, String color, int wheelNum, int seatNum) {
        super(name, color, wheelNum, seatNum);
    }

    @Override
    public void run() {
        System.out.println(this.getColor()+"of"+this.getName()+"："+"Many people together");
    }
}
